package org.example.erpapiservicespringmongoimpl.mapper;

import org.example.erpapicommon.model.Order;
import org.example.erpapicommon.model.TOrder;
import org.example.erpapiservicespringmongoimpl.doc.OrderDoc;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

import java.util.List;

@Mapper(componentModel = "spring",uses = {CustomerMapper.class, EmployeeMapper.class, ShipperMapper.class, OrderDetailMapper.class })
public interface OrderMapper {
    @Mapping(target = "orderDetails",source = "details")
    Order fromOrderDocToOrder(OrderDoc orderDetailDtoList);
}
